<?php if ($this->error_messages) { ?>
    <?php foreach ($this->error_messages as $message) { ?>
        <div class="error"><?php echo $message ?></div>
    <?php } ?>
<?php } ?>

<?php if ($this->user) { ?>
    <pre><?php print_r($this->user)?></pre>
<?php } ?>
<script src="http://loginza.ru/js/widget.js" type="text/javascript"></script>
<a href="https://loginza.ru/api/widget?token_url=<?php echo $this->return_url?>" id="loginza">Войти через OpenID</a>